package com.poker.wiki.Service.Impl;

import com.poker.wiki.Service.EbookSnapshotService;
import com.poker.wiki.mapper.EbookSnapshotMapper;
import com.poker.wiki.resp.StatisticResp;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class EbookSnapshotServiceImpl implements EbookSnapshotService {

    @Resource
    EbookSnapshotMapper ebookSnapshotMapper;

    @Override
    public void getEbookSnapshot() {
        ebookSnapshotMapper.getEbookSnapshot();
    }

    @Override
    public List<StatisticResp> getStatistic() {
        return ebookSnapshotMapper.getStatistic();
    }

    @Override
    public List<StatisticResp> get30DStatistic() {
        return ebookSnapshotMapper.get30DStatistic();
    }
}
